﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>学生后勤报修系统</title>
	<!-- Fav  Icon Link -->
	<link rel="shortcut icon" type="image/png" th:href="@{/images/fav.png}">
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
	<!-- themify icons CSS -->
	<link rel="stylesheet" th:href="@{/css/themify-icons.css}">
	<!-- Animations CSS -->
	<link rel="stylesheet" th:href="@{/css/animate.css}">
	<!-- Main CSS -->
	<link rel="stylesheet" th:href="@{/css/styles.css}">
	<link rel="stylesheet" th:href="@{/css/red.css}" id="style_theme">
	<link rel="stylesheet" th:href="@{/css/responsive.css}">
	<!-- morris charts -->
	<link rel="stylesheet" th:href="@{/charts/css/morris.css}">
	<!-- jvectormap -->
	<link rel="stylesheet" th:href="@{/css/jquery-jvectormap.css}">

	<script th:src="@{/js/modernizr.min.js}"></script>
</head>

<body>
<!-- Pre Loader -->
<div class="loading" style="display: none;">
	<div class="spinner">
		<div class="double-bounce1"></div>
		<div class="double-bounce2"></div>
	</div>
</div>
<!--/Pre Loader -->
<!-- Color Changer -->
<div class="theme-settings" id="switcher">
		<span class="theme-click">
			<span class="ti-settings"></span>
		</span>
	<span class="theme-color theme-default theme-active" data-color="red"></span>
	<span class="theme-color theme-blue" data-color="blue"></span>
	<span class="theme-color theme-red" data-color="red"></span>
	<span class="theme-color theme-violet" data-color="violet"></span>
	<span class="theme-color theme-yellow" data-color="yellow"></span>
</div>
<!-- /Color Changer -->
<div class="wrapper">
	<!-- Page Content -->
	<div id="content">
		<!-- Top Navigation -->
		<div class="container top-brand">
			<nav class="navbar navbar-default">
				<div class="navbar-header">
					<div class="sidebar-header"> <a href="/index.html"><img src="/images/logo-dark.png" class="logo" alt="logo"></a>
					</div>
				</div>
				<ul class="nav justify-content-end">



					<li class="nav-item">
						<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="/#" role="button" aria-haspopup="true" aria-expanded="false">
							<span class="ti-user"></span>
						</a>
						<div class="dropdown-menu lochana-box-shadow2 profile animated flipInY">
							<h5>John Willing</h5>


							<a class="dropdown-item" href="/#">
								<span class="ti-power-off"></span> 退出登录</a>
						</div>
					</li>
				</ul>

			</nav>
		</div>
		<!-- /Top Navigation -->
		<!-- Menu -->
		<div th:replace="common::#app-Menu-Baoxiu"></div>
		<!-- /Menu -->
		<!-- Breadcrumb -->
		<!-- Page Title -->
		<div class="container mt-0 ">
			<div class="row breadcrumb-bar" style="background: linear-gradient(to left, #fff, #fff)">
				<div class="col-md-6">
					<h3 class="block-title">添加评价</h3>
				</div>
			</div>
			<div class="row">
				<!-- Widget Item -->
				<form class="col-md-12" th:action="${comment==null?'/app/insertcom/':'/app/updatecom/'}+${repairsId}" method="post">
					<div class="widget-area-2 lochana-box-shadow">
						<h3 class="widget-title">详细评价</h3>
						<div class="row no-mp">
							<div class="col-md-4">
								<div class="card mb-4">
									<div class="card-body">
										<textarea class="form-control card-text" rows="3" name="evaluateComment" placeholder="详细描述" th:if="${comment==null}">[[${'师傅维修又快又好,负责热情'}]] </textarea>
										<textarea class="form-control card-text" rows="3" name="evaluateComment" placeholder="详细描述" th:unless="${comment==null}" >[[${comment.getEvaluateComment()}]]</textarea>
										<button type="submit" class="btn btn-success mb-2"><span class="ti-pencil-alt"></span>提交 评论</button>
										<a th:href="@{/app/deletecom/}+${repairsId}"><button class="btn btn-danger" type="button"><span class="ti-trash"></span>删除 评论 </button></a>
									</div>
								</div>
							</div>
							<div class="col-md-8">
								<div class="table-responsive">
									<table class="table table-bordered table-striped">
										<tbody>
										<tr>
											<td><strong>名字</strong></td>
											<td th:text="${repairman.getRepairmanName()}"></td>
										</tr>

										<tr>
											<td><strong>联系方式</strong> </td>
											<td th:text="${repairman.getRepairmanTelephone()}"></td>
										</tr>
										<tr>
											<td><strong>评分</strong> </td>
											<td><input type="text" name="evaluateScore" th:value="${comment==null?5:comment.getEvaluateScore()}"></td>
										</tr>
										<tr>
											<td><strong>回复时间</strong> </td>
											<!--													<td th:if="${comment!=null}" th:text="${#dates.format(comment.getAnswerTime(),'yyyy-MM-dd')}"></td>-->
											<td th:text="${comment==null?'':#dates.format(comment.getAnswerTime(),'yyyy-MM-dd')}"></td>

										</tr>
										<tr>
											<td><strong>回复</strong> </td>
											<!--													<td th:if="${comment!=null}" th:text="${comment.getAnswer()}"></td>-->
											<td th:text="${comment==null?'':comment.getAnswer()}"></td>

										</tr>
										</tbody>
									</table>
									<!--Export links-->
									<nav aria-label="Page navigation example"></nav>
									<!-- /Export links-->
								</div>
							</div>
						</div>

					</div>
				</form>
				<!-- /Widget Item -->
			</div>
		</div>
		<!-- /Page Title -->
		<!-- /Breadcrumb -->
		<!-- Main Content -->

		<!-- /Main Content -->
		<!--Copy Rights-->



		<div class="container">
			<div class="d-sm-flex justify-content-center">
				<span class="text-muted text-center d-block d-sm-inline-block">Copyright © 2021 <a href="/#" target="_blank">konnectcode</a>. All rights reserved.</span>
			</div>
		</div>
		<!-- /Copy Rights-->
	</div>
	<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="/#" class="back-to-top" style="display: inline;">
	<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<!-- Jquery Library-->
<script src="/js/jquery-3.2.1.min.js"></script>
<!-- Popper Library-->
<script src="/js/popper.min.js"></script>
<!-- Bootstrap Library-->
<script src="/js/bootstrap.min.js"></script>
<!-- morris charts -->
<script src="/charts/js/raphael-min.js"></script>
<script src="/charts/js/morris.min.js"></script>
<script src="/js/custom-morris.js"></script>

<!-- Custom Script-->
<script src="/js/custom.js"></script>






</body>

</html>